//
//  NetworkingTool.h
//  KEREN
//
//  Created by MW on 2023/3/8.
//

#import "AFHTTPSessionManager.h"

NS_ASSUME_NONNULL_BEGIN

typedef void(^successBlock)(id response, NSURLSessionDataTask * operation);
typedef void(^failureBlock)(NSError *error,NSURLSessionDataTask * operation);
typedef void(^delayBlock)(void);


@interface NetworkingTool : NSObject

+ (NSURLSessionDataTask *)POST:(NSString *)url parameters:(id)parameters isDeviceUrl:(BOOL)isDeviceUrl success:(successBlock)success failure:(failureBlock)failure;

+ (NSURLSessionDataTask *)GET:(NSString *)url parameters:(id)parameters isDeviceUrl:(BOOL)isDeviceUrl success:(successBlock)success failure:(failureBlock)failure;

@end

NS_ASSUME_NONNULL_END
